package com.enjoy.game.xcard.sprite;

import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.shader.ShaderProgram;
import org.andengine.opengl.texture.region.ITiledTextureRegion;
import org.andengine.opengl.vbo.DrawType;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

public class CardInfo {
	private final int mID;
	private final String mName;
	private final String mImgUrl;
	private final int[] mDC;

	public CardInfo(int cardID, String name, String imgurl) {
		mID = cardID;
		mName = name;
		mImgUrl = imgurl;
		mDC = new int [DamageDirection.values().length];
		
	}

	
	public int getID() {
		return mID;
	}


	public String getName() {
		return mName;
	}


	public String getImgUrl() {
		return mImgUrl;
	}


	public int[] getDC() {
		return mDC;
	}


	public int getTopDC() {
		return mDC[DamageDirection.TOP.ordinal()];
	}



	public CardInfo setTopDC(int topDC) {
		mDC[DamageDirection.TOP.ordinal()] = topDC;
		return this;
	}



	public int getRightDC() {
		return mDC[DamageDirection.RIGHT.ordinal()];
	}



	public CardInfo setRightDC(int rightDC) {
		mDC[DamageDirection.RIGHT.ordinal()] = rightDC;
		return this;
	}



	public int getBottomDC() {
		return mDC[DamageDirection.BOTTOM.ordinal()];
	}



	public CardInfo setBottomDC(int bottomDC) {
		mDC[DamageDirection.BOTTOM.ordinal()] = bottomDC;
		return this;
	}



	public int getLeftDC() {
		return mDC[DamageDirection.LEFT.ordinal()];
	}



	public CardInfo setLeftDC(int leftDC) {
		mDC[DamageDirection.LEFT.ordinal()] = leftDC;
		return this;
	}



	public enum DamageDirection{
		TOP,
		RIGHT,
		BOTTOM, 
		LEFT
	}
}
